-- GENERATED SPELL FOR [Cultist Bombardier] --


function spell0_33695(pUnit, Event) --@Throw Dynamite,n/a--
pUnit:FullCastSpellOnTarget(65128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33695', 1000, 1)
end

function spell1_33695(pUnit, Event) --@Time Bomb,n/a--
pUnit:FullCastSpellOnTarget(65130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33695', 31500, 1)
end

function Sorts_33695(pUnit, Event)
local choix_sorts_33695 = math.random(0, 1)
if choix_sorts_33695 == 0 then
pUnit:RegisterEvent('spell0_33695', 1, 1)
end
if choix_sorts_33695 == 1 then
pUnit:RegisterEvent('spell1_33695', 1, 1)
end
end

function mob33695_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33695', math.random(1500, 3000), 1)
end

function mob33695_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33695_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33695_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33695, 1, 'mob33695_Action')
RegisterUnitEvent(33695, 2, 'mob33695_Leave')
RegisterUnitEvent(33695, 3, 'mob33695_Kill')
RegisterUnitEvent(33695, 4, 'mob33695_Die')
